﻿using System;
using System.Collections.Generic;
using System.Data.Linq;
using System.Linq;
using System.Text;
using Purdue.Models;
using Purdue.Models.UserInformation;

namespace Purdue.ViewModel
{
    public class IDataContext : DataContext
    {
        public IDataContext(string connectionString)
            : base(connectionString)
        {
            if (!DatabaseExists())
            {
                CreateDatabase();
            }
        }

        public Table<LoginInfo> CollectionOfLoginlogs;
        public Table<CustomerInfo> CollectionOfCustomers;
        public Table<AgentInfo> CollectionOfAgents;
        public Table<SubaccountInfo> CollectionOfSubaccounts;
        public Table<CustomerInviteCode> CollectionOfCustomerInviteCodes;
    }
}
